class ParseError(RuntimeError):
    """
    自定义异常
    """
    def __init__(self, reason):
        super(ParseError, self).__init__()
        self.reason = reason

    def print_reason(self):
        print("!!! error !!! " + self.reason)
